﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="get_Word_Snd.aspx.cs" Inherits="SQT.tracnghiem.Ajax.ASP.Lesson.get_Word_Snd" %>
<%@ Import Namespace="DataAccess" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <%
        int id = int.Parse(Request.QueryString["id"]);
        var get_snd = new TblLessonWordFileController().FetchAll().Where(x => x.FileLessonId == id).ToList(); %>
    <%if(get_snd.Count!=0){ %>
    <audio id="snd_word" src="../Content/testdata/audio/<%=get_snd[0].FileUrl %>" controls="controls"></audio>
    <%}else{ %>
    <audio style="display:none;" id="snd_word" src="../Content/testdata/audio/" controls="controls"></audio>
    <%} %>
    <br />
</body>
</html>
